package it.polimi.swKnights.SWIMv2.ejb.abilityManager;

import it.polimi.swKnights.SWIMv2.ejb.exceptions.AbilityNotFoundException;
import it.polimi.swKnights.SWIMv2.ejb.exceptions.InvalidLoginPrivilegesException;
import it.polimi.swKnights.SWIMv2.ejb.exceptions.LoginFailException;

import java.util.Map;

import javax.ejb.Remote;

@Remote
public interface AbilityHandlerRemote
{

	Map<String, String> getAbilities();

	void addAbility(String userName, String password, String ability)
			throws LoginFailException, InvalidLoginPrivilegesException,
			AbilityNotFoundException;

	Map<String, String> getUserabilities(String userName);

	void removeAbility(String userName, String password, String ability)
			throws LoginFailException, InvalidLoginPrivilegesException,
			AbilityNotFoundException;

}
